package com.lucweb.entity;

import javax.persistence.*;

@Entity
@Table(name = "task_tell", schema = "firesystem", catalog = "")
public class TaskTell {
    private int id;
    private String companyName;
    private String sxsm;
    private String tellTime;
    private String cyr;
    private String tellStatus;
    private String updown;
    private String wqzly;
    private String confirmPeople;
    private String tellText;
    private String yqjffs;

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "companyName", nullable = true, length = 255)
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Basic
    @Column(name = "sxsm", nullable = true, length = 255)
    public String getSxsm() {
        return sxsm;
    }

    public void setSxsm(String sxsm) {
        this.sxsm = sxsm;
    }

    @Basic
    @Column(name = "tellTime", nullable = true, length = 255)
    public String getTellTime() {
        return tellTime;
    }

    public void setTellTime(String tellTime) {
        this.tellTime = tellTime;
    }

    @Basic
    @Column(name = "cyr", nullable = true, length = 255)
    public String getCyr() {
        return cyr;
    }

    public void setCyr(String cyr) {
        this.cyr = cyr;
    }

    @Basic
    @Column(name = "tellStatus", nullable = true, length = 255)
    public String getTellStatus() {
        return tellStatus;
    }

    public void setTellStatus(String tellStatus) {
        this.tellStatus = tellStatus;
    }

    @Basic
    @Column(name = "updown", nullable = true, length = 255)
    public String getUpdown() {
        return updown;
    }

    public void setUpdown(String updown) {
        this.updown = updown;
    }

    @Basic
    @Column(name = "wqzly", nullable = true, length = 255)
    public String getWqzly() {
        return wqzly;
    }

    public void setWqzly(String wqzly) {
        this.wqzly = wqzly;
    }

    @Basic
    @Column(name = "confirmPeople", nullable = true, length = 255)
    public String getConfirmPeople() {
        return confirmPeople;
    }

    public void setConfirmPeople(String confirmPeople) {
        this.confirmPeople = confirmPeople;
    }

    @Basic
    @Column(name = "tellText", nullable = true, length = -1)
    public String getTellText() {
        return tellText;
    }

    public void setTellText(String tellText) {
        this.tellText = tellText;
    }

    @Basic
    @Column(name = "yqjffs", nullable = true, length = 255)
    public String getYqjffs() {
        return yqjffs;
    }

    public void setYqjffs(String yqjffs) {
        this.yqjffs = yqjffs;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TaskTell taskTell = (TaskTell) o;

        if (id != taskTell.id) return false;
        if (companyName != null ? !companyName.equals(taskTell.companyName) : taskTell.companyName != null)
            return false;
        if (sxsm != null ? !sxsm.equals(taskTell.sxsm) : taskTell.sxsm != null) return false;
        if (tellTime != null ? !tellTime.equals(taskTell.tellTime) : taskTell.tellTime != null) return false;
        if (cyr != null ? !cyr.equals(taskTell.cyr) : taskTell.cyr != null) return false;
        if (tellStatus != null ? !tellStatus.equals(taskTell.tellStatus) : taskTell.tellStatus != null) return false;
        if (updown != null ? !updown.equals(taskTell.updown) : taskTell.updown != null) return false;
        if (wqzly != null ? !wqzly.equals(taskTell.wqzly) : taskTell.wqzly != null) return false;
        if (confirmPeople != null ? !confirmPeople.equals(taskTell.confirmPeople) : taskTell.confirmPeople != null)
            return false;
        if (tellText != null ? !tellText.equals(taskTell.tellText) : taskTell.tellText != null) return false;
        if (yqjffs != null ? !yqjffs.equals(taskTell.yqjffs) : taskTell.yqjffs != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
        result = 31 * result + (sxsm != null ? sxsm.hashCode() : 0);
        result = 31 * result + (tellTime != null ? tellTime.hashCode() : 0);
        result = 31 * result + (cyr != null ? cyr.hashCode() : 0);
        result = 31 * result + (tellStatus != null ? tellStatus.hashCode() : 0);
        result = 31 * result + (updown != null ? updown.hashCode() : 0);
        result = 31 * result + (wqzly != null ? wqzly.hashCode() : 0);
        result = 31 * result + (confirmPeople != null ? confirmPeople.hashCode() : 0);
        result = 31 * result + (tellText != null ? tellText.hashCode() : 0);
        result = 31 * result + (yqjffs != null ? yqjffs.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "TaskTell{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
                ", sxsm='" + sxsm + '\'' +
                ", tellTime='" + tellTime + '\'' +
                ", cyr='" + cyr + '\'' +
                ", tellStatus='" + tellStatus + '\'' +
                ", updown='" + updown + '\'' +
                ", wqzly='" + wqzly + '\'' +
                ", confirmPeople='" + confirmPeople + '\'' +
                ", tellText='" + tellText + '\'' +
                ", yqjffs='" + yqjffs + '\'' +
                '}';
    }
}
